package com.vf.admin.platform.entity;


import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.vf.admin.common.db.annotation.Column;
import com.vf.admin.common.db.annotation.NoColumn;
import com.vf.admin.common.db.annotation.Table;

import java.io.Serializable;
import java.util.List;

/**
 * 平台基础角色
 */
@Table(name="bt_role")
public class Role implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(length = 10,name = "id",index = true)
    private Integer id;// 编号
    private String name;// 角色名称
    private Integer sorts;// 排序值
    private String comments;// 备注
    private Integer states;// 状态 1、启用  2、不启用
    private Integer isrootrole;//是否系统保留的最多权限的root角色 1、是

    @NoColumn
    @JSONField(name="LAY_CHECKED")
    private Boolean LAY_CHECKED;//是否分配了该角色 true、已分配  false、未分配
    //关联字段
    @NoColumn
    private List<Element> elementList;//上级菜单名称

    @NoColumn
    private List<Menu> menuidArray;//当前平台用户拥有的所有角色和角色下拥有的菜单和菜单下所拥有的的标签
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Integer getIsrootrole() {
        return isrootrole;
    }

    public void setIsrootrole(Integer isrootrole) {
        this.isrootrole = isrootrole;
    }

    public Integer getSorts() {
        return sorts;
    }

    public void setSorts(Integer sorts) {
        this.sorts = sorts;
    }

    public Boolean getLAY_CHECKED() {
        return LAY_CHECKED;
    }

    public void setLAY_CHECKED(Boolean LAY_CHECKED) {
        this.LAY_CHECKED = LAY_CHECKED;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public List<Element> getElementList() {
        return elementList;
    }

    public void setElementList(List<Element> elementList) {
        this.elementList = elementList;
    }

    public List<Menu> getMenuidArray() {
        return menuidArray;
    }

    public void setMenuidArray(List<Menu> menuidArray) {
        this.menuidArray = menuidArray;
    }

}
